import request from '@/utils/request'

//配置分页列表
export function queryConfigPageList(data) {
	return request({
		method: 'get',
		url: 'tbSysConfig/queryPageList',
		headers: {
			userButton: '35f8281e429440a09d1a6a59cbfea32c'
		},
		params: data
	})
}

//配置列表 - 无分页
export function queryConfigList(data) {
	return request({
		method: 'get',
		url: 'tbSysConfig/queryList',
		headers: {
			userButton: '35f8281e429440a09d1a6a59cbfea32c'
		},
		params: data
	})
}

//添加配置
export function addedConfig(data) {
	return request({
		method: 'post',
		url: 'tbSysConfig/add',
		headers: {
			userButton: 'acc82d0e7809493c9ca7521734dd277e'
		},
		data
	})
}

//删除配置
export function deleteConfig(id) {
	return request({
		method: 'get',
		url: 'tbSysConfig/delete/' + id,
		headers: {
			userButton: '4a5d5d9c95c24168898f800f7a8293b4'
		},
	})
}

//修改配置
export function updateConfig(data) {
	return request({
		method: 'post',
		url: 'tbSysConfig/update',
		headers: {
			userButton: 'd8a0adc113674c03a736c90d61bda417'
		},
		data,
	})
}

//配置详情
export function configDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysConfig/query/' + id,
		headers: {
			userButton: '6b4b2cd059ee49ed91b63fc373bc75ce'
		},
	})
}